package cn.xuewenbao.manage.service.impl;

import cn.xuewenbao.manage.entity.Member;
import cn.xuewenbao.manage.mapper.IMemberMapper;
import cn.xuewenbao.manage.service.IMemberService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: member
 * @Author: mafayu
 * @Date:   2021-09-23
 * @Version: V1.0
 */
@Service
public class IMemberServiceImpl extends ServiceImpl<IMemberMapper, Member> implements IMemberService {

    @Override
    public String getUserNameById(String userId) {
        Member member = baseMapper.selectById(userId);
        return member.getUsername();
    }
}
